package com.francis.orm.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Author Francis
 * @Date 2020/12/6 20:21
 * @Version 1.0
 * @Description:
 */
@Entity
@Table(name="t_member")
@Data
public class Member implements Serializable {
    @Id
    private int id;
    private String name;
    private String addr;
    private int age;

    @Override
    public String toString() {
        return "Member{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", addr='" + addr + '\'' +
                ", age=" + age +
                '}';
    }
}
